package com.hanZhe.service;

import com.hanZhe.bean.User;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.stereotype.Service;

/**
 * Created by shw on 2018-02-27.
 */
@Service
public interface UserService {
    User selectUser(String username);


//    拥有admin这个角色的用户才可以访问这个方法
    @RequiresRoles(value = {"admin"})
    void textMethod();
}
